import lombok.Data;

/**
 * @projectName: com.xiayuanxing.designPattern
 * @className: Drink
 * @author: xiayuanxing
 * @description: TODO
 * @date: 2021/12/28 11:14
 * @version: 1.0
 */

@Data
public abstract class Drink {

    //描述
    public String des;

    private float price = 0.0f;


    //计算费用的抽象方法，由子类来实现
    public abstract float cost();
}
